diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-10-08 16:17:26 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-10-08 16:17:26 +0100 |
| commit | a42befd9b422fe6f16c76b67e07988b36a2ff7c7 (patch) | |
| tree | 0c3aea3e499944188d5416e5c177147459d44529 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenSwitchTests]/[method:canGenerateCodeForSwitchWithSingleResult(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | |
| parent | 74f4965ab78cfb8e27654b34c263a3a925221e1a (diff) | |
Add tags when generating Patio code for structs
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenSwitchTests]/[method:canGenerateCodeForSwitchWithSingleResult(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
1 files changed, 11 insertions, 1 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenSwitchTests]/[method:canGenerateCodeForSwitchWithSingleResult(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenSwitchTests]/[method:canGenerateCodeForSwitchWithSingleResult(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index af600e66..ce72c24e 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenSwitchTests]/[method:canGenerateCodeForSwitchWithSingleResult(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenSwitchTests]/[method:canGenerateCodeForSwitchWithSingleResult(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -3,6 +3,8 @@ Compilation unit elements: Locals: * (val "tmp__0" int) + * (val "switchTag__0" int) + * (val "structValuePointer__0" data-ptr) * (val "tmp__1" int) * (val "tmp__2" int) * (val "tmp__3" int) @@ -13,10 +15,18 @@ Locals: Instructions: ( + (int-to-data-ptr (local "structValuePointer__0") (local "condition")) + ( + memory-load + (local "switchTag__0") + pointer=(local "structValuePointer__0") + layout=(struct (int)) + offset=(0) + ) ( switch ((local "tmp__0")) - (local "condition") + (local "switchTag__0") ( ( case |
